package com.iwomy.secureplat.platform.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.iwomy.secureplat.platform.dto.SensorTransmissionDataDto;
import com.iwomy.secureplat.platform.transmission.entity.SensorTransmissionData;

import java.util.List;

public interface RealTimeDataService {

	/**
	 * 根据设备获取一条实时数据
	 *
	 * @param imei
	 * @return
	 */
	SensorTransmissionData getOneByImei(String imei);

	Page page(Page page, SensorTransmissionDataDto sensorTransmissionDataDto);

	JSONObject attributeCurve(SensorTransmissionDataDto sensorTransmissionDataDto);

	SensorTransmissionData getRedisByImei(String imei);


}